package hh.cloud.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderService {

    @Autowired
    Environment env;

    @GetMapping("/orders")
    public Object getAllOrder(){
        System.out.println( env.getProperty("server.port"));
        return "all orders";
    }
}
